import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    allComponent: [],
  },
  mutations: {
    setComponentData(state, components) {
      state.allComponent = components
    },
    getComponentData(state) {
      return state.allComponent
    },
  },
  actions: {},
  modules: {},
})
